package service.impl;


import dao.AddpowerDao;
import dao.impl.AddpowerDaoImpl;
import service.AddpowerService;

import java.sql.SQLException;

public class AddpowerServiceImpl implements AddpowerService {
    AddpowerDao addpowerDao = new AddpowerDaoImpl();
    private boolean flag = false;

    public boolean addUserAddpower(Integer mid, Integer uid) throws SQLException {
        flag = addpowerDao.addAddpower(mid, uid);
        return flag;
    }


    public boolean deleteUserAddpower(Integer mid, Integer uid) throws SQLException {
        flag = addpowerDao.deleteAddpower(mid, uid);
        return flag;
    }
}
